<#import "/freemarker/modeltype.ftl" as mt>
<div class="dataTables_title">
	<div class="dataTables_title_left">按钮注释</div>
	<div class="dataTables_title_right">
		<a class="btn btn-danger" href="#"><i class="icon-lock"></i> 屏蔽</a>
		<a class="btn btn-warning" href="#"><i class="icon-unlock"></i> 解除屏蔽</a>
		<a class="btn btn-success" href="#"><i class="icon-edit"></i> 编辑</a>
	</div>
</div>
<table class="table table-bordered animate2 fadeInUp">
	<tr>
		<th>标题</th>
		<th>申请类型</th>
		<th>创建时间</th>
		<th>领用状态</th>
		<th>是否屏蔽</th>
		<th style="width:60px;">操作</th>
	</tr>
	<#list pageBean.resultList as goodsApply>
	<tr>
		<td>${goodsApply.title}</td>
		<td><#if goodsApply.sort == 1>消耗品<#else>固定资产</#if></td>
		<td>${goodsApply.at?string('yyyy-MM-dd HH:mm')}</td>
		<td><#if goodsApply.status?? && goodsApply.status == 1> 已领用<#elseif goodsApply.status?? && goodsApply.status == 2>未领用</#if></td>
		<td style="font-weight:bold; color:<#if (goodsApply.deleted)>red<#else>green</#if>;"><@mt.YesOrNo value=((goodsApply.deleted)!false) r=false /></td>
		<td>
			<div class="btn-group">
				<#if !goodsApply.deleted>
				<a class="btn btn-xs btn-danger" href="javascript:;" onclick="javascript: shield_goodsApply('${goodsApply.code}', '${goodsApply.title}');return false;" title="屏蔽"><i class="icon-lock"></i></a>
				<#else>
				<a class="btn btn-xs btn-waring" href="javascript:;" onclick="javascript: unshield_goodsApply('${goodsApply.code}', '${goodsApply.title}');return false;" title="解除屏蔽"><i class="icon-unlock"></i></a>
				</#if>
				<a class="btn btn-xs btn-success" href="javascript:;" title="查看" onclick="javaxcript: sys_load_handle('goodsApply-detail_${goodsApply.code}');return false;"><i class="icon-edit"></i></a>
			</div>
		</td>
	</tr>
	</#list>
</table>
<#import "/freemarker/pagination.ftl" as p>
<@p.pagination pageBean 'queryApply_apply'/>